﻿namespace ConsoleApp1
{
    internal class MyStorageImpl : MyStorageI
    {
        private readonly MyConfigI myConfig;

        public MyStorageImpl(MyConfigI myConfig)
        {
            this.myConfig = myConfig;
        }

        public void save(string content, string name)
        {
            string server = myConfig.GetValue("server");
            Console.WriteLine($"保存内容 {content} 到名为 {name} 的文件中，文件在服务器 {server}.");
        }
    }
}